﻿using Furion.ConfigurableOptions;

namespace MhAdmin.Cache;

/// <summary>
/// 缓存设置
/// </summary>
public class CacheSettingsOptions : IConfigurableOptions
{
    /// <summary>
    /// 使用Redis
    /// </summary>
    public bool UseRedis { get; set; }

    /// <summary>
    /// Redis设置
    /// </summary>
    public RedisSettings RedisSettings { get; set; }
}

/// <summary>
/// Redis设置
/// </summary>
public class RedisSettings
{
    /// <summary>
    /// 连接地址
    /// </summary>
    public string Connection { get; set; }

    /// <summary>
    /// 是否每次启动都清空
    /// </summary>
    public bool ClearRedis { get; set; } = false;
}